﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucMenu.ascx.cs" Inherits="Controls_ucMenu" %>
<script type="text/javascript">
    function change_img(id, newsrc) {

        document.getElementById('trangchu_img').src = 'Images/trangchu_1.png';
        document.getElementById('gioithieu_img').src = 'Images/gioithieu_1.png';
        document.getElementById('vanphongchiase_img').src = 'Images/vanphongchiase_1.png';
        document.getElementById('chongoilamviec_img').src = 'Images/chongoilamviec_1.png';
        document.getElementById('phonglamviecrieng_img').src = 'Images/phonglamviecrieng_1.png';
        document.getElementById('dichvukhac_img').src = 'Images/dichvukhac_1.png';
        document.getElementById('crm_img').src = 'Images/crm_1.png';
        document.getElementById('lienhe_img').src = 'Images/lienhe_1.png';


        document.getElementById(id).src = newsrc;

        writeSubMenu(id);
    }

    function writeSubMenu(id) {
        strHTML = "";
        switch (id) {
            case "gioithieu_img":
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"GioiThieu.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;GIOI THIEU VE SOHO&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"GioiThieuDoiTac.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;DOI TAC&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"GioiThieuYKienKhachHang.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;Y KIEN KHACH HANG&nbsp;&nbsp;</a></div>";
                break;
            case "vanphongchiase_img":
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"VPCS.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;GIỚi THIỆU VỀ VĂN PHÒNG CHIA SẺ&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"VPCSBangGia.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;BẢNG GIÁ&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"VPCSHinhAnh.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;HÌNH ẢNH&nbsp;&nbsp;</a></div>";
                break;
            case "chongoilamviec_img":
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"CNLV.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;GIỚI THIỆU VỀ CHỖ NGỒI LÀM VIỆC&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"CNLVHinhAnh.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;HÌNH ẢNH&nbsp;&nbsp;</a></div>";
                break;
            case "phonglamviecrieng_img":
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"PLVR.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;GIỚI THIỆU VỀ PHÒNG LÀM VIỆC RIÊNG&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"PLVRHinhAnh.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;HÌNH ẢNH&nbsp;&nbsp;</a></div>";
                break;
            case "dichvukhac_img":
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"PLVR.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;CALL ANSWERING&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"DVKBusinessAddress.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;BUSINESS ADDRESS&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"DVKMeetingRoom.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;MEETING ROOM&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"DVKEFax.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;E-FAX&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"DVKCompanySigns.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;COMPANY SIGNS&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"DVKTranslation.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;TRANSLATION&nbsp;&nbsp;</a></div>";
                break;
            case "crm_img":
                strHTML += "<div style=\"float:left;padding-top:4px;\"><a href=\"CRM.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;GIỚI THIỆU VỀ CRM&nbsp;&nbsp;|</a></div>";
                strHTML += "<div style=\"float:left;padding-top:4px\"><a href=\"CRMLogin.aspx\" style=\" color:White; text-decoration:none\" >&nbsp;&nbsp;LOGIN&nbsp;&nbsp;</a></div>";
                break;
        }
        document.getElementById("submenu").innerHTML = strHTML;
    }

    function CreatFLV(value) {

        var FO = { movie: "clips/flvplayer.swf", width: "160", height: "160", majorversion: "7", build: "0", bgcolor: "#FFFFFF", flashvars: "file=" + value + "&showdigits=false&autostart=true&showfsbutton=true&repeat=true" };
        UFO.create(FO, "player1");
    }
            </script>
            <div style="background-image: url(Images/menu_bkg.png); padding: 0px; margin: 0px">
                <table style="width: 100%; border-width: 0px; border-collapse: collapse; border-spacing: 0;
                    width: 100%; padding: 0px; margin: 0px">
                    <tr style="width: 100%">
                        <td>
                            <a href="Default.aspx">
                                <img src="Images/trangchu_1.png" style="border: 0" id="trangchu_img" onmouseover="change_img('trangchu_img','Images/trangchu_2.png');" /></a>
                        </td>
                        <td>
                            <a href="GioiThieu.aspx">
                                <img src="Images/gioithieu_1.png" style="border: 0" id="gioithieu_img" onmouseover="change_img('gioithieu_img','Images/gioithieu_2.png');" /></a>
                        </td>
                        <td>
                            <a href="VPCS.aspx">
                                <img src="Images/vanphongchiase_1.png" style="border: 0" id="vanphongchiase_img"
                                    onmouseover="change_img('vanphongchiase_img','Images/vanphongchiase_2.png');" /></a>
                        </td>
                        <td>
                            <a href="CNLV.aspx">
                                <img src="Images/chongoilamviec_1.png" style="border: 0" id="chongoilamviec_img"
                                    onmouseover="change_img('chongoilamviec_img','Images/chongoilamviec_2.png');" /></a>
                        </td>
                        <td>
                            <a href="PLVR.aspx">
                                <img src="Images/phonglamviecrieng_1.png" style="border: 0" id="phonglamviecrieng_img"
                                    onmouseover="change_img('phonglamviecrieng_img','Images/phonglamviecrieng_2.png');" /></a>
                        </td>
                        <td>
                            <a href="DVKCallAnswering.aspx">
                                <img src="Images/dichvukhac_1.png" style="border: 0" id="dichvukhac_img" onmouseover="change_img('dichvukhac_img','Images/dichvukhac_2.png');" /></a>
                        </td>
                        <td>
                            <a href="CRM.aspx">
                                <img src="Images/crm_1.png" style="border: 0" id="crm_img" onmouseover="change_img('crm_img','Images/crm_2.png');" /></a>
                        </td>
                        <td>
                            <a href="LienHe.aspx">
                                <img src="Images/lienhe_1.png" style="border: 0" id="lienhe_img" onmouseover="change_img('lienhe_img','Images/lienhe_2.png');" /></a>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="submenu" style=" width:100%;background-image:url(Images/submenu_bkg.png); float:right; border:0px; font-size:10px; height:25px">
            </div>